package com.seeyon.apps.ext.cop.button;


import com.seeyon.cap4.form.bean.button.CommonBtn;
import com.seeyon.cap4.form.util.Enums;

import www.seeyon.com.utils.UUIDUtil;

/**Excel导入
 * 
 * @author ljj
 * @date 2021-8-9
 */
public class DataExtBtn extends CommonBtn {

	public static void main(String[] args) {
		System.out.println(UUIDUtil.getUUIDLong());
	}
	
	
	@Override
	public void init() {
		this.setPluginId("cheap-person");//设置插件或者组件id，和pluginCfg.xml中的id一致
		this.setIcon("cap-icon-import");
	}

	@Override
	public boolean canUse(Enums.FormType formType) {
		return true;
	}

	@Override
	public String getKey() {
		return "5061429735225137369";
	}

	@Override
	public String getNameSpace() {
		return "customBtn_" + this.getKey();
	}

	@Override
	public String getText() {
		return "传数据到本地";
	}

	/*
	/**
	 * 获取PC端自定义控件运行态资源注入信息
	 * jsUri:定义PC端表单运行态加载第三方JavaScript的路径
	 * cssUri：定义PC端表单运行态加载第三方CSS的路径
	 * initMethod:定义PC端表单运行态第三方js入口方法名称
	 *
	 * @return
	 */
	@Override
	public String getPCInjectionInfo() {
		return "{\"path\":\"apps_res/cap/customCtrlResources/dataExtBtnResources/\",\"jsUri\":\"js/excelExtPcCtrRunning.js\",\"initMethod\":\"init\",\"nameSpace\":\""
				+ this.getNameSpace() + "\"}";
	}

	@Override
	public String getMBInjectionInfo() {
		return "{\"path\":\"m3/apps/v5/cop_data_btn/\",\"jsUri\":\"js/index.js\",\"initMethod\":\"init\",\"nameSpace\":\""
				+ this.getNameSpace() + "\"}";
	}






}